function Cmder() {
    this.finishi = false;
}

Cmder.prototype = {

    constructor: Cmder,

    handleCmd: function(str) {
        
        var args = str.split(' ');
        
        if (typeof this[args[0]] === 'function') {
            return this[args[0]](args.slice(1));
        } else {
            return "<p>Unknown Command " + args[0] + "</p>";
        }
    },
    
    exit: function() {
        this.finish = true;
        return "<p>Bye!</p>";
    }
};